<div>
    <div class="table-header mt20 clearfix ng-scope">
        <span class="fl lh30 f14">租户列表</span>

        <div class="fr btn-group">
            <input class="input-text fl" style="width: 470px;" type="text"
                   placeholder="企业名称/企业号" ng-model="query.keyword" ng-enter="query.execute()"/>
            <a class="btn" href="javascript: void(0)" ng-click="query.execute()">搜索</a>
        </div>
    </div>

    <div id="grid" class="table-wrap mt10">
        <table width="100%" class="valign-t">
            <thead>
            <tr>
                <th width="35">序号</th>
                <th width="100">企业名称</th>
                <th width="100">企业号</th>
                <th width="100">管理员邮箱</th>
                <th width="50">状态</th>
                <th width="85">创建时间</th>
                <th>交付信息</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in list">
                <td height="40">{{$index + 1 + startPageIndex}}</td>
                <td class="lh14">
                    <p class="c-gray">{{item.FriendlyName}}</p>
                </td>
                <td>
                    <p>{{item.UniqueName}}</p>
                </td>
                <td>
                    <p>{{item.Email}}</p>
                </td>
                <td>
                    <p>{{item.State==1?'启用':'禁用'}}</p>
                </td>
                <td>
                    <p>{{item.CreatedOn}}</p>
                </td>
                <td>
                    <p>区域：{{item.Area}}</p>

                    <p> 客户经理：{{item.CustomManager}} {{item.CustomManagerPhone}}</p>

                    <p> 交付顾问：{{item.Deliver}} {{item.DeliverPhone}}</p>
                </td>
                <td>
                    <p>
                        <a href="javascript:void(0)"
                           ui-dialog="授权管理"
                           ui-dialog-show="showEditTenant(item,$dialog,$dialogScope)"
                           ui-dialog-cache="false"
                           ui-dialog-url="/tenant/dialog/authorize.html">授权</a>
                    </p>

                    <p>
                        <a href="javascript:void(0)"
                           ui-dialog="交付信息"
                           ui-dialog-cache="false"
                           ui-dialog-data="item"
                           ui-dialog-ok="saveDeliver($data,$dialog,$dialogScope)"
                           ui-dialog-url="/tenant/dialog/edit_deliver.html">设置交付信息</a>
                    </p>
                </td>
            </tr>
            </tbody>
        </table>

        <div ng-if="!list || list.length==0" class="no-data"><span>暂无数据</span></div>
    </div>

    <div ui-pagination page-index="query.page" page-size="query.pageSize" total="query.total" changed="query.execute($pageIndex)"></div>
</div>
